# vi:noexpandtab: 

SRC_FILES=\
	AnyObjectParser.cpp \
	Base64Parser.cpp \
	Decoder.cpp \
	HeaderParser.cpp \
	MultipartParser.cpp \
	ObjectBodyParser.cpp \
	ObjectParser.cpp \
	ParserFactory.cpp \
	QuotedPrintableParser.cpp \
	SimpleParser.cpp \
	StringDecoder.cpp \
#leave this comment here so you can rearrange the above files easily

HDR_FILES=\
	AnyObjectParser.h \
	Base64Parser.h \
	ClientInterface.h \
	Decoder.h \
	HeaderField.h \
	HeaderParser.h \
	MultipartParser.h \
	Object.h \
	ObjectBodyParser.h \
	ObjectParser.h \
	Parser.h \
	ParserFactory.h \
	QuotedPrintableParser.h \
	SimpleParser.h \
	StringDecoder.h \
	exceptions.h \
#leave this comment here so you can rearrange the above files easily

OBJ_FILES=${SRC_FILES:.cpp=.o}

LIB=libmimedecode.a

product_1: $(LIB) try1 try2

clean:
	rm -f $(OBJ_FILES) $(LIB) try1 try2

$(LIB):	$(OBJ_FILES)
	ar -rvs $(LIB) $(OBJ_FILES)

try1: try1.o $(OBJ_FILES)
	${CXX} ${CXXFLAGS} ${LDXXFLAGS} $(OBJ_FILES) try1.o -o try1

try2: try2.o $(OBJ_FILES)
	${CXX} ${CXXFLAGS} ${LDXXFLAGS} $(OBJ_FILES) try2.o -o try2

# DEPENDENCIES
# Generated by gcc -MM *.cpp

AnyObjectParser.o: AnyObjectParser.cpp ParserFactory.h ClientInterface.h \
  Object.h HeaderField.h Parser.h AnyObjectParser.h ObjectBodyParser.h \
  ObjectParser.h HeaderParser.h exceptions.h
Base64Parser.o: Base64Parser.cpp Base64Parser.h Parser.h Object.h \
  HeaderField.h ObjectBodyParser.h ClientInterface.h ObjectParser.h
Decoder.o: Decoder.cpp Decoder.h ClientInterface.h Object.h HeaderField.h \
  Parser.h ParserFactory.h
HeaderParser.o: HeaderParser.cpp exceptions.h HeaderParser.h Parser.h \
  Object.h HeaderField.h
MultipartParser.o: MultipartParser.cpp ParserFactory.h ClientInterface.h \
  Object.h HeaderField.h Parser.h MultipartParser.h ObjectBodyParser.h \
  ObjectParser.h exceptions.h
ObjectBodyParser.o: ObjectBodyParser.cpp
ObjectParser.o: ObjectParser.cpp Parser.h Object.h HeaderField.h \
  ObjectParser.h ClientInterface.h
ParserFactory.o: ParserFactory.cpp Parser.h Object.h HeaderField.h \
  ParserFactory.h ClientInterface.h Base64Parser.h ObjectBodyParser.h \
  ObjectParser.h QuotedPrintableParser.h SimpleParser.h \
  AnyObjectParser.h HeaderParser.h MultipartParser.h
QuotedPrintableParser.o: QuotedPrintableParser.cpp ParserFactory.h \
  ClientInterface.h Object.h HeaderField.h Parser.h \
  QuotedPrintableParser.h ObjectBodyParser.h ObjectParser.h
SimpleParser.o: SimpleParser.cpp SimpleParser.h ClientInterface.h \
  Object.h HeaderField.h Parser.h ObjectBodyParser.h ObjectParser.h
StringDecoder.o: StringDecoder.cpp HeaderField.h StringDecoder.h \
  Decoder.h ClientInterface.h Object.h Parser.h
try1.o: try1.cpp Decoder.h ClientInterface.h Object.h HeaderField.h \
  Parser.h
try2.o: try2.cpp StringDecoder.h Decoder.h ClientInterface.h Object.h \
  HeaderField.h Parser.h

# End of File
